using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using OVS.BusinessObjects;

namespace OVS.DAL
{
    public partial class AlertImage_AlertDAO
	{
        // TODO Corriger suite update BDD
        //public int AddAlertImage_Alert2(AlertImage_Alert oAlertImage_Alert)
        //{
        //    try
        //    {
        //        DbCommand oDbCommand = DbProviderHelper.CreateCommand("INSERT INTO [AlertImage_Alert]([Alert_aler_id],[Image_Alert_imal_id])VALUES(@aler_id,@Image_Aler_id);SELECT SCOPE_IDENTITY();", CommandType.Text);
        //        oDbCommand.Parameters.Add(DbProviderHelper.CreateParameter("@aler_id", DbType.String, oAlertImage_Alert.Alert_aler_id));
        //        oDbCommand.Parameters.Add(DbProviderHelper.CreateParameter("@Image_Aler_id", DbType.String, oAlertImage_Alert.Image_Alert_imal_id));

        //        return Convert.ToInt32(DbProviderHelper.ExecuteScalar(oDbCommand));
        //    }
        //    catch (Exception ex)
        //    {
        //        throw ex;
        //    }
        //}
	}
}
